package com.stary.code.springboot.config.data;

/**
 * <p>mongoDB配置类</p>
 * @author stary {@link stary1993@qq.com}
 * @since 2018-7-25
 */
public class MongodbConfig {
	
	/**
	 * 主机，默认localhost
	 */
	private String host = "localhost";
	/**
	 * 端口，默认27017
	 */
	private int port = 27017;
	/**
	 * 库名
	 */
	private String database = "test";
	/**
	 * 用户名
	 */
	private String username;
	/**
	 * 密码
	 */
	private String password;
	
	public String getHost() {
		return host;
	}
	public MongodbConfig setHost(String host) {
		this.host = host;
		return this;
	}
	public int getPort() {
		return port;
	}
	public MongodbConfig setPort(int port) {
		this.port = port;
		return this;
	}
	public String getDatabase() {
		return database;
	}
	public MongodbConfig setDatabase(String database) {
		this.database = database;
		return this;
	}
	public String getUsername() {
		return username;
	}
	public MongodbConfig setUsername(String username) {
		this.username = username;
		return this;
	}
	public String getPassword() {
		return password;
	}
	public MongodbConfig setPassword(String password) {
		this.password = password;
		return this;
	}
	
}
